/**
 * 
 */
package com.wonders.ssh.service.impl;

import java.security.PrivateKey;
import java.util.List;

import com.wonders.ssh.dao.UserDAO;
import com.wonders.ssh.model.User;
import com.wonders.ssh.service.UserService;

public class UserServiceImpl implements UserService {
	private User user;
	private UserDAO userDAO;

	public UserDAO getUserDAO() {
		return userDAO;
	}

	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}

	public void save(User user) {
		this.userDAO.save(user);
	}

	public void delete(User user) {
		this.userDAO.delete(user);
	}

	public User findById(Integer id) {
		User user = this.userDAO.findById(id);
		return user;
	}

	public List findByUsername(Object username) {
		List list = this.userDAO.findByUsername(username);
		return list;
	}

	public List findAll() {
		List list = this.userDAO.findAll();
		return list;
	}

}